move the scheduler to own package