rename a writetype
format code.
read from remote peer