fix bugs. add check for existing shapefiles
fix conflict