add external file config, udp support
fix udp buffer mismatch bug