cross validation now takes model_prefix  and type