adding check for proxy settings