changed the way models are accessed for NBayesFactory