basic ibeacon logic