updating 404 detection; was broken