major editing of scripts to accomodate a possible system reinstall