added proxies and headers support