add logging, scheduler working