added export to shapefile functionality