         static var commands = Dictionary<String, Array<String> -> ()>()
         static var window = UIWindow()
         static var isSetup = false
+        static var delegate = PesticideDelegate?()
     }
 
     public class func log(message: String) {

        Pesticide.addLabel("version:", label: BuildUtils.getVersionString())
        Pesticide.addLabel("build:", label: BuildUtils.getBuildNumberString())
        Pesticide.addLabel("hash:", label: BuildUtils.getGitHash())
        
        CV.isSetup = true
    }

            topVC.presentViewController(CV.debugVC, animated: true, completion: nil)
        }
    }
    
    
    
    
    
// MARK: setter functions
    
    public class func setWindow(window :UIWindow) {
        if (!CV.isSetup) {
            Pesticide.setup()
        }
        CV.window = window
    }
    
    public class func setDelegate(delegate :PesticideDelegate?) {
        CV.delegate = delegate
    }

    
    
    
    
// MARK: private functions
    
    private class func setup() {
        Pesticide.startLogging()
