switch config working