exception in hook