working for pi-sched rw and mix