UDP tuning and bugfixing