run rm_env when it is commanded