         graph.connections = []
         graph.name = payload.name or ''
         graph.nodeMap = {} # nodeName->numericNodeId
+        # FIXME: should be on the graph!
+        runtime.exportedEdges = []
+        runtime.edgesForInspection = []
         sendAck connection, { protocol: 'graph', command: command, payload: payload }
     else if command is "addnode"
         graph.processes[payload.id] = payload

    else if command is "edges"
        # TOD: merge with those of exported outports
        runtime.edgesForInspection = payload.edges
        runtime.exportedEdges = [] if not runtime.exportedEdges?
        edges = runtime.edgesForInspection.concat runtime.exportedEdges
        handleNetworkEdges runtime, connection, edges
        sendAck connection, { protocol: 'network', command: command, payload: payload }

            port: payload.port
        sendExportedPorts connection, runtime
        # For subscribing to output packets
        runtime.exportedEdges.push
            src:
                process: payload.node
