control whether instances are used or not control whether vertexs are stored localy or not *Removed unsused code