fix --on-hook syntax