made controller factory work again