some refactoring regarding udp server component