add bfs to build