refactor all to use Settings class