[code] remove recursion from the importation loop