wrapper file mode