add udp support
typo bugfix
udp tested ok