add log reading