update ALTERNATE_DEVICE logic