fix treeadopt script