         graph.nodeMap = {}
         graph.componentMap = {}
         graph.currentNodeId = 1
-        # FIXME: should be on the graph!
         runtime.exportedEdges = []
         runtime.edgesForInspection = []
-        if liveProgramming
-          sendMessage runtime, { protocol: 'graph', command: command, payload: payload }
-        else
-          sendAck connection, { protocol: 'graph', command: command, payload: payload }
+
+        sendMessage runtime, { protocol: 'graph', command: command, payload: payload }
     else if command is "addnode"
         graph.processes[payload.id] = payload
         graph.nodeMap[payload.id] = { id: graph.currentNodeId++ }
         graph.componentMap[payload.id] = payload.component
         # TODO: wait for nodeId from runtime, update nodeMap then
-        if liveProgramming
-          sendMessage runtime, { protocol: 'graph', command: command, payload: payload }
-        else
-          sendAck connection, { protocol: 'graph', command: command, payload: payload }
+        sendMessage runtime, { protocol: 'graph', command: command, payload: payload }
     else if command is "removenode"
-        if liveProgramming
-          sendMessage runtime, { protocol: 'graph', command: command, payload: payload }
-        else
-          sendAck connection, { protocol: 'graph', command: command, payload: payload }
+        sendMessage runtime, { protocol: 'graph', command: command, payload: payload }
         delete graph.processes[payload.id]
         delete graph.nodeMap[payload.id]
         delete graph.componentMap[payload.id]

  flowhub = require("flowhub-registry")
catch e
  #

liveProgramming = process.env.MICROFLO_LIVE?

commandstream = require("./commandstream")
generate = require("./generate")

            src:
                process: payload.node
                port: payload.port

        # update subscriptions on device side
        edges = runtime.exportedEdges.concat runtime.edgesForInspection
        handleNetworkEdges runtime, connection, edges, (err) ->
          console.log 'handle network edges error', err if err

        sendAck connection, { protocol: 'graph', command: command, payload: payload }
    else if command is "removeoutport"
