 
         let url = try getFullyQualifiedUrl(breinTemporalData)
         let body = try getRequestBody(breinTemporalData)
-        
+
         do {
             // dump(body)
             let jsonData = try! JSONSerialization.data(withJSONObject: body as Any, options: JSONSerialization.WritingOptions.prettyPrinted)
-            let jsonString = NSString(data: jsonData, encoding: String.Encoding.utf8.rawValue)! as String
+            _ = NSString(data: jsonData, encoding: String.Encoding.utf8.rawValue)! as String
 
             // print(jsonString)
         }
-        
+
         // Alamofire.request(url, method: .post,
-        sessionManager.request(url, method: .post,
+        session.request(url, method: .post,
                         parameters: body,
                         encoding: JSONEncoding.default)
                 .responseJSON {


        do {
            let jsonData = try! JSONSerialization.data(withJSONObject: body as Any, options: JSONSerialization.WritingOptions.prettyPrinted)
            let jsonString = NSString(data: jsonData, encoding: String.Encoding.utf8.rawValue)! as String

            // print(jsonString)
        }

        Alamofire.request(url, method: .post,
                        parameters: body,
                        encoding: JSONEncoding.default)
                .responseJSON {


    public func executeSavedRequests() {

        BreinLogger.shared.log("executeSavedRequests invoked")

        // 1. loop over entries
        missedRequests = BreinRequestManager.shared.getMissedRequests()

        BreinLogger.shared.log("Number of elements in queue is: \(missedRequests?.count ?? -1)")

        for (uuid, entry) in (missedRequests)! {

            BreinLogger.shared.log("Working on UUID: \(uuid)")

            // 1. is this entry in time range?
            let considerEntry = BreinRequestManager.shared.checkIfValid(currentEntry: entry)
            if considerEntry == true {

                let urlString = entry.fullUrl
