added replica support for addEntry