 			oauthio = qs.parse(oauthio)
 			if ! oauthio.k
 				return cb new Error "oauthio_key", "You must provide a 'k' (key) in 'oauthio' header"
-			@db.providers.getMeMapping provider, (err, content) =>
+			env.data.providers.getMeMapping provider, (err, content) =>
 				if !err
 					if content.url
-						@apiRequest {apiUrl: content.url, headers: { 'User-Agent': 'Node' } }, provider, oauthio, (err, options) =>
+						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) =>

			res.send 200
			next false

		@server.get new RegExp('^/auth/([a-zA-Z0-9_\\.~-]+)/me$'), restify.queryParser(), cors_middleware, (req, res, next) =>
			cb = @server.send res, next
			provider = req.params[0]
			filter = req.query.filter
			filter = filter?.split ','

	exp.raw = ->
		fixUrl = (ref) -> ref.replace /^([a-zA-Z\-_]+:\/)([^\/])/, '$1/$2'

		check = env.utilities.check
		env.server.opts new RegExp('^/auth/([a-zA-Z0-9_\\.~-]+)/me$'), (req, res, next) =>

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