now multiple terains can be used and in the graph the octree is cached
did some major refacotroing