Separate tree and treeimport