migrate to the new data format