sending headers correctly