added logic to rebuild the hash blocks into a file locally