modified cron to use a better structure of logging.