finished write proc in sysmon_toggle in draft, not debugged yet