clarify API
remove orphaned urls.py
lazily create the thread local data
extract context location logic