implement accessory type setting/unsetting