added debug output to core_hep