get ngram search to a working stage