refactored local settings