added logging for device discovery