-switched to textbased serialization