modularized the cron bot