some debugging (and a counter for how many beacons it sees)