made loading a model's mapper a function