cleaned up the proxy setting for httpclient