better packet size checker