 
 handleNetworkCommand = (command, payload, connection, runtime, transport, debugLevel) ->
     if command is "start"
-        if liveProgramming
-          m = { protocol: 'network', command: command, payload: payload }
-          sendMessage runtime, m
-        else
-          resetAndUploadGraph runtime, connection, debugLevel
+        m = { protocol: 'network', command: command, payload: payload }
+        sendMessage runtime, m
     else if command is "stop"
-        if liveProgramming
-          m = { protocol: 'network', command: command, payload: payload }
-          sendMessage runtime, m
-        else
-          m =
-              protocol: "network"
-              command: "stopped"
-              payload:
-                  running: false
-                  started: false
-          sendAck connection, m
+        m = { protocol: 'network', command: command, payload: payload }
+        sendMessage runtime, m
     else if command is "edges"
         # TODO: merge with those of exported outports
         runtime.edgesForInspection = payload.edges

            type: "microflo"
            version: "0.4"
            capabilities: caps
        if liveProgramming
          runtime.device.open () ->
            connection.send
              protocol: "runtime"
              command: "runtime"
              payload: r
          sendExportedPorts connection, runtime       
        else
          connection.send
              protocol: "runtime"
              command: "runtime"
              payload: r
          sendExportedPorts connection, runtime
    else if command is 'packet'
        sendPacket runtime, payload.port, payload.event, payload.payload
    else

        graph.nodeMap = {}
        graph.componentMap = {}
        graph.currentNodeId = 1
        runtime.exportedEdges = []
        runtime.edgesForInspection = []

        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
        sendMessage runtime, { protocol: 'graph', command: command, payload: payload }
    else if command is "removenode"
        sendMessage runtime, { protocol: 'graph', command: command, payload: payload }
        delete graph.processes[payload.id]
        delete graph.nodeMap[payload.id]
        delete graph.componentMap[payload.id]
