update to support iOS8.