add logging, fix typo