replace switch-off.go and switch-state.go