update for iOS and OSX