handle accept headers correctly