protocol error handling