changes to debug message printing