added lexer profiling code