prevents default :middlewares from being mutated