fixes for udp