logging entity modifications