Wired up env insert
Wired up update for environments