setting branch and collection in File model