add the serializer codegen