add addrindex to generated conf file