implement check for packet completeness