fix udp/tcp binary output