upgrade flag, r environment, and killall