revert changes to header checking