util.Middleware class added