logging clean up