Controller patch replaced with middleware, added root_strategy config