treemode WIP