support for socks4 and socks5 proxies