updated models to reflect the new version of api.