add record_replay