build bemtree