fix logger class
add logging