add read_conf and modify the  redundancy part