perhaps I need to do this before returning the packet?