experimental code to read existing chains and compute SHA1 checksum