added updates to fix peripheral scan in ios8