added everything, final version, two cron jobs