hook for logging more relevant details