move to cocoa init