add support for downgrading back to legacy index format