added cron and device check