working udp test code