parameter for ext-lib in gsps, changing name of template_index to main