changed logger init