parser optimizations