Connect and crossroads middlewares