update encode&decode interface