fixes to cron