add similar logging