include protobuf and null cases