fix logger creation