rejigging serialization mechanism