turn Resource.Metas into a map