add dumptree command to basicrrt