     }()
 
     var applicationDocumentsDirectory: NSURL {
-        let url = NSFileManager.defaultManager().containerURLForSecurityApplicationGroupIdentifier(Config.sharedGroupName)
-            if let actualurl = url {
-                return actualurl as NSURL
-            } else {
-                return NSURL()
-            }
+        let url = NSFileManager.defaultManager().containerURLForSecurityApplicationGroupIdentifier(AppConfig.ApplicationGroups.primary)
+        if let actualurl = url {
+            return actualurl as NSURL
+        } else {
+            return NSURL()
+        }
     }
 
     func addSkipBackupAttributeToItemAtURL( url: NSURL) -> Void



    lazy var managedObjectModel: NSManagedObjectModel? = {
        let modelURL = NSBundle(identifier: Config.sharedBundleIdentifier)?.URLForResource(Config.datamodelName, withExtension: "momd")
        var _managedObjectModel = NSManagedObjectModel(contentsOfURL: modelURL!)

        return _managedObjectModel

@objc(Datamanager)
public class Datamanager
{

    let _formatterQueue: dispatch_queue_t = dispatch_queue_create("formatter queue", nil)

