add trace command to debug api