add ability to make cron_job class method optional