better exempt_url handling