fix hooks to be compatible with 0.4.2