moved hook registration into init

'cause that's where it belongs