core: better debug