adapted to new gammalib structure