refactored settings.py for simpler usage