fix race condition by waiting for the protocol
wait on protocol