flattenExt_v2 + compress + some cleanup