adding support for GLS