extract_wire cleanup