add log clean up