add ios8 support