give the `env` flag type `[String]`, remove unneeded code