updates for working with Xcode 5 and iOS 7