modify scheduler_stub.cpp