fix string typo, add logging