update to UDPServer to work with javafx