add settingslogic