added cron-related functions