refactored and pushed the periodic monitor into the operator file