updates to work with ios7 and xcode 5