add management command that finds and rebuilds corrupted cases