some cocoa fixes