fix getppid, --auto to --edit, bug fixes to mimic