added trace api call