code: function startPhantom ( next, options ) {
  
      phantomProcess = spawn('node', [phantomLoc +'/phantomjs', '--webdriver=' + options.phantomPort, '--webdriver-selenium-grid-hub=http://' + options.host + ':' + options.port, '--ignore-ssl-errors=' + options.ignoreSslErrors]);
  //    console.log( phantomLoc +'/phantomjs', '--webdriver=' + options.phantomPort, '--webdriver-selenium-grid-hub=http://' + options.host + ':' + options.port, '--ignore-ssl-errors=' + options.ignoreSslErrors );
      phantomProcess.stderr.setEncoding('utf8');
      phantomProcess.stderr.on('data', function(data) {
  //        console.log('error',data);
          data = data.trim();
      });
      phantomProcess.stdout.setEncoding('utf8');
      // wait for client ready message before proceeding
      phantomProcess.stdout.on('data', function( msg ) {
          var error;
  //        console.log('out',data);
          // look for msg that indicates it's ready and then stop logging messages
          if ( !started && msg.indexOf( 'Registered with grid' ) > -1) {
              console.log ('registered phantomjs with hub running on ' + options.host + ':' + options.port);
              started = true;
              starting = false;
              if (typeof next === 'function') {
                  return next();
              }
          } else if (msg.indexOf('ERROR') > -1) {
              error = JSON.parse(msg.substring(msg.indexOf('{')));
              console.trace(error);
              process.exit(1);
          }
      });
  }
docs: /*
  starts phantom, called after grid has been established
  @private