cleaned up udp example