raising 404 when appropriate