updated check headers script