change core.py to MonitorService