add scheduler.