first working iteration of the replay system