add functional for update environment.json