changed to raise 404 instead