sort out handling handling with osx