save data to spreadsheet and fix config