new script for cleaning logs