fix stupid bugs in tclient
remote sleep in relay.c
adjust stats format
fix bug in tcp_server_cb
use macros instead of functions
another fix in tclient