more refactoring to the packethook and its surroundings kaing it overall more solid