add gls support