correctly handle input/output nodes under rpc