add read_index_file and normalize it.