added some conversions to packetmap (also did fmt)