ios and ble coordination stuff