[issue3992] set/get use cases for 'env' and new 'set_env' magic