update file mode settings