updated client to semi-correctly send numPackets