added debug info to chd