improved import method