changes in SOCKS5 connection handling