added environment and ngram query
some stuff