added ios8 support