anchor.diff:  		echo Error! %PROG% is already running or you have a stale pid file. If %PROG% is not running delete %PROG%.pid file and try again.
   		exit 1
   	)	
  -	start %TITLE% node start.js	
  +	if bundle==%whichnode% (
  +		start %TITLE% .\node start.js
  +	) else ( 
  +		start %TITLE% node start.js
  +	)
  +	timeout /t 3
   	FOR /F "usebackq tokens=2" %%i IN (`tasklist /nh /fi "WINDOWTITLE eq %TITLE%"`) DO echo %%i > .\%PROG%.pid
   goto :end
   
  
positive.code: set check_port=true
  set TITLE="MagnetMessagingConsole"
  set PROG="mmx-console"
  
  
  if "%selfWrapped%"=="" (
  
negative.code: 
  
  :check_node
  	REM check in path
  	node -v 1>NUL 2>NUL
  	set nodeinpath=%ERRORLEVEL%
  
  	REM for the bundled node
  	.\node -v 1>NUL 2>NUL
  	set nodebundle=%ERRORLEVEL%
  
  	
  	if 0 neq %nodebundle% (
  		if 0 neq %nodeinpath% (
  			echo node.js is not installed
  			echo MMX console needs node.js version 0.10.0 OR higher
  			echo Please check https://nodejs.org/download/
  			exit 1
  		) else (
  			echo node.js is installed
  			set whichnode=env
  		)
  	) else (
  		echo node.js is available
  		set whichnode=bundle
  	)
  goto :eof
  
  