improve debug log