update controlled_switching example, and remaining usage of old transys api