it's a lot of branching joepie91_ like, for instance, for 404s it has to correctly handle bad stats, then try to handle the case where there's a 404.html to show off and the case where there isn't a 404.html, just lots of twisty little passages