improved debug section