bug fix on order of vertex instantiation and port making
Merge conflicts??