write all packets for all steps