logging fixed again