cleanup an improved logging