adding useful print when errors happen sending protocol messages