check for duplicate header more thoroughly