code changes to restore older data format