refactored custom settings