support patch-env