improved debug display