add support for bigram speedup