we need a function to return the settings, since we get the settings from a lot of places, and we have to validate it every time.