regenerate HPM hooks.