adding local state field to histories