add switching controller