add logging traces