add config file for UDP version
modify mainUDP