update to opttree
update to reduction script