being more careful about initializing the device metadata.