added getSubnetwork method, need to figure out a way to get root network