updated examples to use list_devices