first cut attempt for debug support