added --fix-corrupted argument to pull_raw