for multicrit, add mean.dist option