upgraded to support latest connect middlewares
debugger removed