modify runGeneric to match new model