improved logwatcher