general import optimization