fix apis that have a model, need to shim the model['path']