         catch let error {
             print("Problem creating parent directory: \(error)")
         }
+        print("path: \(path)")
         self.db = levelDBOpen(path.cString)
     }
     

        #else
            let path = NSURL(fileURLWithPath: getLibraryPath(), isDirectory: true).URLByAppendingPathComponent(name).path ?? ""
        #endif
        return self.init(path:path, name:name)
    }
    
    class func getLibraryPath() -> String {

        do {
            #if swift(>=3.0)
                let dirpath =  NSURL(fileURLWithPath:path).deletingLastPathComponent?.path ?? ""
                //print("dirpath: \(dirpath)")
                let fm = FileManager.default
                try fm.createDirectory(atPath: dirpath, withIntermediateDirectories:true, attributes:nil)
            #else
