add support for iOS 6