packet size arithmetic off by one
revise packet arithmetic