support cron like job with declare