hack for BFS support

see #140