- added N-gram support