simplify serializing