oops... fixed the part where it mods this script, and removed temp files