get triangulation working properly
added pathablity toggle