better tolerance of headers