add GL index buffers and a few tweaks to the helper functions