Add hooks section into config; additional debug output