added connection status flag for leap