check for protocol violation