fix to internal 404, return json response