improve debug consumer, alter cmake config