fix for downloads to redirect to a 404 on missing book file and generate a flag