better logging for parser