implement swapping for old formats