add iOS8 support