added support for traces