improve debug renderer