fix a race condition by initializing other/unknown when we load the manifest
optimize deduceDevice() using the default switch clause