perhaps order the cases with Heartbeat, GossipEnvelope, MetricsGossipEnvelope at the top