 	res.send (if r? then r else check.nullv)
 	next()
 
-plugins.data.hooks =
-	'connect.auth': []
-	'connect.callback': []
-	'connect.backend': []
+plugins.data.hooks = {}
 
 plugins.data.callhook = -> # (name, ..., callback)
 	name = Array.prototype.slice.call(arguments)

	name = name[0]
	callback = args.splice(-1)
	callback = callback[0]
	cmds = []
	args[args.length] = null
	for hook in plugins.data.hooks[name]

				args[args.length - 1] = cb
				hook.apply plugins.data, args
	async.series cmds, callback

plugins.data.addhook = (name, fn) ->
	plugins.data.hooks[name] ?= []
	plugins.data.hooks[name].push fn

bootPathCache = ->
	chain = restify.conditionalRequest()
