pack and unpack rpc data block
@bugfix minor