someone managed to get more than one device labeled with the same name - which makes the rest of the script go wonky - so we pick just the first...