T rewrite memorybuffer transport

branch name says it all