check updates in a cron