fix for use of deprecated putTraceMsg