Metal used as mask for etching vias