updated to initialize the settings object