added check for proxyserver