adding code to accept trace data