fix hooks so they work with differently signatured functions