run the scheduler in its own thread