adding multi-bfs capability