Introduce env var fold_chunk_size (default: 100)
remove commented, obsolete code