modify ntp_filegen.cpp and ntp_monitor.cpp