added logging features for cron