added support for SOCKS5 proxies for external connections