logging fixed