improved import_portfolio