use multiple middlewares and require module if string given