FIX: don't depend upon config.py, rather the current_app's config context