update lagi source code