         
         if !success
         {
-            let error = NSError(domain: "ArchiveStoreDomain", code: 2093, userInfo: [NSLocalizedDescriptionKey: "create file failed"])
+            let error = NSError(domain: "ArchiveStoreDomain", code: 0, userInfo: [NSLocalizedDescriptionKey: "create file failed"])
             throw error
         }
     }
     
     func dataForKey(key: String) throws -> NSData?
     {
-        let data = try NSData(contentsOfFile: self.filePath(key: key), options: [])
+        let data = NSData(contentsOfURL: self.fileURLForKey(key: key))
         
         return data
     }
     
     func deleteDataForKey(key: String) throws
     {
-        try self.fileManager.removeItemAtPath(self.filePath(key: key))
+        try self.fileManager.removeItemAtURL(self.fileURLForKey(key: key))
     }
     
     private func documentsDirectoryURL() -> NSURL?

        return nil
    }
    
    private func filePath(key key: String) -> String
    {
        guard let directoryURL = self.documentsDirectoryURL()
        else

        
        let fileURL = directoryURL.URLByAppendingPathComponent("dontlookatthis-\(key).plist")
        
        return fileURL
    }
}