improved cronjobs script