oh god...derrr....   fixing bug in new hook error handling.