add multi-file mode