dealing with logs