update environments