update with env