user model_class instead of model id for version-specific code