de/serialize pull streams