fix typo
pass class params
add logger