add trace info for debug