add console support for reformatting indices