PR review comment:  _doOpenSave  function was nested pretty deep. factored out inner portion  into a separate function.