debug message cleanup