made the header hash checking more specific