improved debug output