added support for proxy server