misc edits to scripts