added the setting of some env variables for cron usage