fixed the scripts for UDP