fixed hook signatures to ensure 2.0 compatibility.