refactoring around Environment initialization
refactoring around Environment initialization
removed ENVTYPE_module_member
added EnvRefMode