adding support for lexical groups