added tree structure for directories