added queryDevice