cleaning up trace logging