adds code to auto-save csv string.