added some reading of the packet