improve debug metadata