added progress bar for index command