extracted business logic; initial state for settings