cleanup of settings.py (bug is known)