added two scripts to hadd trees