add packets to exports with lengths