add logs on hooks