handle traces