updated Accept header handling