update env since env is hash in piper