switch events and peers in header