wip on perf, fix subtreeID double recursion problem
improve subtree elimination
remove console.logs