improved module tcpclient