better debug reporting