add UDP mode to server