update to work with current GLI-2

updated to work with GLI-2, as error messages suggested.