add logs for tracking errors