fix typo and move logging info