cron script fixes