add bfs to kernel