more changes to task scheduler