hooks
new functions to log