added data/tree handlers
added tree structure output