modified links to handle subnetwork context