added detection for ble