adding vertex array - misc fixes