moved mode from cronjob to file