some progress with treebuilding