define file mode consts at the top of the script so they're defined when apps are updated on load due to upgrade/downgrade