add explicit_serialize decorator