preparations to replay mode