automatic package import optimization