     check method, String
     check callback, Match.Optional Function
 
+    process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0
+
     if options?.headers
       options.headers = _.extend @defaultHeaders, options.headers 
     else
       options.headers = @defaultHeaders
 
+    options = _.extend options, timeout: 10000
+
     try
       unless callback
-        return @__httpCallSync method, url, options
+        res = @__httpCallSync method, url, options
+        process.env.NODE_TLS_REJECT_UNAUTHORIZED = NTRU_def
+        return res
       else
-        HTTP.call method, url, options, callback
+        HTTP.call method, url, options, ->
+          process.env.NODE_TLS_REJECT_UNAUTHORIZED = NTRU_def
+          callback.apply @, arguments
     catch error
       console.error error
 

    @base = opts.base or opts.root or opts.path or 'db/data'
    @base = @base.replace(/^\/|\/$/g, '')
    @root = "#{@url}/#{@base}"
    check @base, String

    @__service = {}

            if results?.data
              for result in results.data
                if clones?[result.id]
                  if result?.body
                    if _.isEmpty result.body?.errors
                      @batchResults[result.id] = result.body
                    else
                      for error in result.body.errors
                        console.error error.message
                        console.error {code: error.code}
                      @batchResults[result.id] = []
                  else
                    @batchResults[result.id] = []

                  clones[result.id] = undefined
                  delete clones[result.id]

    , 100

  __getBatchResult: (id, cb) ->
