use nsapplication instead
back to square one, working, but not integrating with appkit (which is necessary