add state to entitylog