add rec_type support in import_records()