fixex tcp.socket.connect methods