clean up pre-run script