make sure every part of import is in transaction