all fixes found so far, some on file ownership, others on quashing prompted dialogs mid script.