improved debug overlay