hook system seems to work fine now. So time to remove the debug output