added indexing support, textures are broken now :(