Add middleware. fixed #1