added (optional) auto_env