adding support for proxy settings