replaced pashua with cocoadialog