better stats, and lexer speed optimizations