refactored to scheduler role