 								res.send fieldMap(body, content.fields, filter)
 					else if content.fetch
 						user_fetcher = {}
-						apiRequest = @apiRequest
+						apiRequest = env.plugins.request.apiRequest
 						async.eachSeries content.fetch, (item, cb) -> 
 							if typeof item == 'object'
 								url = item.url

	cors_middleware = (req, res, next) ->
		oauthio = req.headers.oauthio
		if ! oauthio
			return cb new @check.Error "You must provide a valid 'oauthio' http header"
		oauthio = qs.parse(oauthio)
		if ! oauthio.k
			return cb new @check.Error "oauthio_key", "You must provide a 'k' (key) in 'oauthio' header"

		origin = null
		ref = fixUrl(req.headers['referer'] || req.headers['origin'] || "http://localhost");

			oauthio = qs.parse(oauthio)
			if ! oauthio.k
				return cb new Error "oauthio_key", "You must provide a 'k' (key) in 'oauthio' header"
			env.data.providers.getMeMapping provider, (err, content) =>
				if !err
					if content.url
						env.plugins.request.apiRequest {apiUrl: content.url, headers: { 'User-Agent': 'Node' } }, provider, oauthio, (err, options) =>
							return sendAbsentFeatureError(req, res, 'me()') if err
							options.json = true
							request options, (err, response, body) =>
