add vtype and other stuff in the tree