introduction of serializeRPCError