                 request.setValue(uuid, forHTTPHeaderField: "uuid")
                 request.httpBody = jsonData?.data(using: .utf8, allowLossyConversion: false)!
 
-                Alamofire.request(request).responseJSON {
+                AF.request(request).responseJSON {
                     (response) in
 
                     // dump(response)

                    let uuidEntry = response.request?.allHTTPHeaderFields!["uuid"]
                    let status = response.response?.statusCode
                    if status == 200 {
                        BreinRequestManager.sharedInstance.removeEntry(uuidEntry!)
                    } else {
                        print("could not send request with uuid: \(uuidEntry ?? "Nothing")")
                    }
                }

            } else {
                print("Removing from Queue: \(uuid)")
                BreinRequestManager.sharedInstance.removeEntry(uuid)
            }
        }
    }


    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
