adds code to automatically update settings fields on upgrade