added support for iOS 6.1