Changes to allow a rootId for multiple trees in one collection