app will possibly crash when file write is called for settings and data