                     if(isLogging){
                         print(parseError)
                     }
-                    callback(response: cloudBoostResponse)
+                    queue?.addOperationWithBlock {
+                        callback(response: cloudBoostResponse)
+                    }
                 }
             }
         })

    
    private var progressCallback: ((progressCallback: CloudBoostProgressResponse) -> Void)?
    private var response = CloudBoostProgressResponse()
    
    public override init(){}
    
    public static func _request( method: String, url: NSURL, params: NSMutableDictionary, callback: (response: CloudBoostResponse) -> Void ){
        
        var _method = method
        

    public func URLSession(session: NSURLSession, task: NSURLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
        print("did send")
        response.progress = Double(totalBytesSent)/Double(totalBytesExpectedToSend)
        self.progressQueue?.addOperationWithBlock {
            self.progressCallback!(progressCallback: self.response)
        }
    }
    
    public func URLSession(session: NSURLSession, dataTask: NSURLSessionDataTask, didReceiveResponse response: NSURLResponse, completionHandler: (NSURLSessionResponseDisposition) -> Void) {
