add memory stream relay