added logging to settings.