upgrade lexer