added set_monitor call