deal with relative names in _wire_cmp