           @emit 'stderr', error
           return callback()
 
-        @emit 'npm:stderr', stderr.toString()
-        @emit 'npm:stdout', stdout.toString()
-        debug 'forever stdout', stdout.toString()
-        debug 'forever stderr', stderr.toString()
+        @emit 'npm:stderr', stderr
+        @emit 'npm:stdout', stdout
+        debug 'npm:stdout', stdout
+        debug 'npm:stderr', stderr
+        @connectorsInstalled[connector] = true
         callback()
     )
 

  constructor: (@config) ->
    @deviceProcesses = {}
    @runningDevices = []

  refreshDevices: (devices, callback) =>
    debug 'refreshDevices', _.pluck(devices, 'uuid')


  installConnector : (connector, callback=->) =>
    debug 'installConnector', connector
    return if @connectorsInstalled[connector]

    nodeModulesDir = path.join @config.tmpPath, 'node_modules'
    fs.mkdirpSync nodeModulesDir
    connectorPath = path.join nodeModulesDir, connector
