fix up schemas. example for how to access model in retrieve js