rollback to sha1_chunk and sha1_chunk_prep