implement folding all folding also subregions

implements and close #394