update logs and counts