refactor log listing