ported to xcode beta 3