拆分pack为pack-before和pack-after