buildEnvironment