moved SGL into the lagr package