better logging for writers