- use generators for file pieces, add debug output for metainfo dict