check the headers on theway out