add cron file and bug fixed