Pl sam writer factory stream