fix method of adding cronjob