reset dir on switch