cleaning up loggging