lex_processor, tweaks to get rid of some errors