         isMainGraph = payload.name == runtime.namespace + '/' + runtime.graph.name
         p = if isMainGraph then getGraphSource(runtime) else getComponentSource(runtime, payload.name)
         return p.then (payload) ->
-          sendAck connection, { protocol: 'component', command: 'source', payload: payload }
+          return { protocol: 'component', command: 'source', payload: payload }
     else
-        return Promise.reject("Unknown FBP command component:#{command}: #{payload}")
+        return Promise.reject(new Error("Unknown FBP command component:#{command}: #{payload}"))
     return
 
-sendAck = (connection, msg) ->
-    delete msg.payload.secret
-    connection.send msg
 
 handleGraphCommand = (command, payload, connection, runtime) ->
     request = { protocol: 'graph', command: command, payload: payload }

    if not p
      console.error("handler for #{contents.protocol}:#{contents.command} did not return a Promise")

    p.catch (err) ->
        payload = { message: err.message }
        connection.send { protocol: contents.protocol, command: 'error', payload: payload }

        console.error('FBP PROTOCOL error:', err)
        console.error(err.stack)

    if command in ['start', 'stop', 'getstatus']
        req = { protocol: 'network', command: command, payload: payload }
        return sendMessage(runtime, req).then (resp) ->
          return resp
    else if command in ['debug']
        # does nothing relevant, response not expected
        return Promise.resolve()
