moved environment to a member variable instead of adding to the configuration root