some improvements about lto