header patching