wrong approach to get the task scheduler running