clean up of logging text