some more fixes in layer_udp