smart scheduler.