adding session replica support