added some UDP server code