improve debug