change by wcx to add debug