only check header validity if in strict mode