added ability to replay