revised and tested setup for cron jobs