added local switch tool