fix compile errors
trace class