better logging of headers