query for devices only on initialization