put the packet handling in a function and call a go routine