added packet size option