fixes so that there are 404 errors instead of server errors for not found things