updated task scheduler and cron