upgrading some osx code