updated GM script to support VGM