factor out the UDPServer