improve the output of tcp{server,client}