first add output_monitor.h output_monitor.cpp into the repo