i: split initializer of env into method init_env