fixed serialization pipeline