removed logging from hooks