implement basic replay support.