better 404 detection