added more functionality to the cron stuff