get rid of WEIRD_LEX. fix lex race conditions