replace setInterval with setTimeout for establishing the bridge