add basic mechanism to checkout agents during replays