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

Stream = require 'stream'

module.exports = (env) ->
	oauth = env.engine.oauth

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


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