updated so that it now supports the ibeacon format