add support for customized lexer option