fixes to udp socket