finished initial implementation of prehandler in sysmon_toggle.c