add treebuilder