add replica section to config