better loading of the environment