why did you use an indexfile as opposed to just letting the import do everything you want?

The import wouldnt enable constraints till the end