added support for proxy servers