fixed device discovery, but there is a problem with the poorly documented getUuid() method, maybe some code is unnecessary here