             var split = url.hasPrefix("/") ? "" : "/"
             urlVal = "\(self.baseURL!)\(split)\(url)"
         }
-        if self.requestSerializer == nil {
-            self.requestSerializer = HTTPRequestSerializer()
-        }
+        println("requestSerializer: \(self.requestSerializer)")
         return self.requestSerializer.createRequest(NSURL.URLWithString(urlVal),
             method: method, parameters: parameters)
         

public class HTTPTask : NSObject, NSURLSessionDelegate {
    
    var baseURL: String?
    var requestSerializer: HTTPRequestSerializer!
    var responseSerializer: HTTPResponseSerializer?
    //these 2 only get used for background download/upload since they have to be delegate methods
    var backgroundSuccess:((AnyObject?) -> Void)?

            str += letters[start]
        }
        return "com.vluxe.swifthttp.request.\(str)"
    }
    
    ///creates a random string to use for the identifer of the background download/upload requests
    private func createError(code: Int) -> NSError {
        var text = "An error occured"
        if code == 404 {
            text = "page not found"
        } else if code == 401 {
            text = "accessed denied"
        }
        return NSError(domain: "HTTPTask", code: code, userInfo: [NSLocalizedDescriptionKey: text])
    }
    
    //the background download finished, don't have to really do anything
