trying to fix opttree clean up