added cronjob hooks