do a final check after all lexing is done