better UDP support - added preliminary multicast support (untested)