working switch config