Update serialize to use yaxlib