update environments in index