manage custom serialize