added cocoa bindings