replay_mode added