bug fix for last commit

mostly typos, didn't import logging earlier