register memory stream