added echo as a middleware