moved MonitorService to its one file