added logging to ibeacon