prepare for scheduler