added check for url/network