add code to monitor beacons for detectin entry and exit