added to packetmetadata interface, fixed type err