file mode
add config for file mode