make bs_tree iterable