first version of logwatcher