add classes and ngram startup