add logging on hook error. much needed!!