iOS 6/7 deprecation support