fixed cache issue, added cron hook