optimizing udp support