more work on the tree reconstructer