set packet size in script