added support for proxies with authentication