read files and match geometries