updated model objects to work with updated api