switch-based auto mode