improvements to logging; cron job