recipe serialize & deserialize.