working on notes for packet handling logic