added logging to cron jobs