make sure the tree manager does not create duplicate entries