bfs-patch