use string for NodeId and remove peerPrefix function