tweak command-line args, nuke local_env