fixed logging section