some work on a shapefiles script