edits to sweep test case. scripting utilities