add -r option to allow tree reduction