added tree like printing for useful debugging