bug fixed: hook() got an unexpected keyword argument 'verify'