some changes to the TCPclient