fixed threading for settings