added the ability to work with iOS 6.0