Improved rets importer