clean & get replay functionality