better stats, tree plotting