         guard !dataSeeded else { return }
         
         // fetch the user's contacts
-        let contactImporter = ContactImporter(context: context)
-        contactImporter.fetch()
+        contactImporter?.fetch()
         
         // update user defaults with a true value for seeded data key
         NSUserDefaults.standardUserDefaults().setObject(true, forKey: "DataSeeded")

        let contactsContext = NSManagedObjectContext(concurrencyType: .PrivateQueueConcurrencyType)
        // setup the persistent store coordinator for the contacts context
        contactsContext.persistentStoreCoordinator = CoreDataStack.sharedInstance.coordinator
        // call the import contacts with this private queue context
        importContacts(contactsContext)
        
        return true
    }

class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    
    // private optional contact importer
    private var contactImporter: ContactImporter?

    
    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool {
