allow treedata to be changed at runtime