fix logger implementation