move SocksConn to another file