switch event hook lines