trouble shooting the TCP client