extracted settings methods
refactored settings hash to settings object within endpoint