device discovery fix