adding support for minDistance in anticipation of mongo 2.5