work on log and periodic scheduler.