Update config && middlewares, fix specs