simplify log reading