add better check to make sure a device is selected
build