modifying for cronjobs