added logging for cron jobs