working on packet testing routine