adjusted correspBeacon example