added support for iOS 2