clean up logging, get rid of new line