<wip>codec:use gob

Signed-off-by: Tan Wei <weix.z.tan@intel.com>