serialize is now in its own lib