worked out scripting shapefile import