script to parse bundle and add modgui section