use cargofied serialize and log