change the replay_deletions stuff to be optional