fixed err passing in modelClass, should work now.