combine pattern scoring with config