add 404 for bad queries