some changes to replay