added showtree option