- renamed mode option to mode instead of copyMode,
- mode is now an option and optionally mode settings can be passed rather than copied from the original file