support for proxies and untrusted certificate