add bicing middlewares