add catch_all_404s flag, and add a test for the behavior