set location as network location, if network is specified