clean up, separated udpin and packethandler for server and slave