Wip tree structure

dynamic legends