sudo for hooks