fix networks var in discoverPeers() to match what might be imported