[wip] EGSZ2a restructuring adaptive algorithm and marking