major overhaul to support cron based timing