better logging for the parser