refactoring monitored service and managament service