trying to fix lexer to work in node