build the environment