update logging
fix typo