improved debug message