fix handling of "automatic" in file mode