Continue after matched
Do basic escaping without breaking links
Extracted auth, added debug auth