updates for tcpclient and tcpserver