general updates to the scripts
minor fixes to scripts