try to move every cron code in entry point