fix udp listener and prototype of server app