patch BFS scheduler into kernel