passing objects to treemanager for create and update