adjust the cron script to be easier to maintain