replace all instanced of env