script for cleaning up logs