better logging for file processing